package com.b511.swpu.cementbackend.controller;

import com.b511.swpu.cementbackend.dto.input.BA_WellInputDto;
import com.b511.swpu.cementbackend.dto.input.WorkBaseInputDto;
import com.b511.swpu.cementbackend.entity.BA_Well;
import com.b511.swpu.cementbackend.service.MenuService;
import com.b511.swpu.cementbackend.service.WorkBaseService;
import com.b511.swpu.cementbackend.util.R;
import io.swagger.annotations.Api;
import org.springframework.data.domain.PageRequest;
import org.springframework.web.bind.annotation.*;

@Api(value = "数据分类", tags = {"数据分类"})
@RestController
@RequestMapping("/menu")
public class MenuController {

    private final MenuService menuService;

    public MenuController(MenuService menuService) {
        this.menuService = menuService;
    }

    //数据分类的目录
    @GetMapping("/menus")
    public R getWorkBaseByCondition() throws Exception {
        return menuService.getMenu();
    }

}
